package com.rongc.client.freight.base.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.rongc.client.core.network.api.AbsRequest;
import com.rongc.client.core.network.params.BaseParams;
import com.rongc.client.freight.ApiUrl;
import com.rongc.client.freight.base.model.DicsBean;


/*
*  获取字典接口
* */

public class DicsApi extends AbsRequest<DicsApi.DicsParams, DicsBean.DicBean[]> {

    public DicsApi(DicsParams feedbackParams, Listener<DicsBean.DicBean[]> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getDictsUrl(), feedbackParams, listener, errorListener, DicsBean.DicBean[].class);
    }

    public static class DicsParams extends BaseParams {

        public DicsParams(String type) {
            put("dictType",type);
        }
    }


}
